<?xml version="1.0" encoding="UTF-8" ?>
<%@	taglib uri="/struts-tags" prefix="s"%>
<%@page pageEncoding="UTF-8"%>
<html>
  <head>
    <title>Huniu Search</title>
  </head>
  <body>	
	<div class="content">
		<center>
		<s:form action="search" cssStyle="margin: 0 auto;" theme="simple" namespace="/external" method="post">
		<table>
			<tbody>
				<tr valign="top">
					<td align="center" nowrap>
						<s:textfield key="keyWords" size="57" maxlength="2048" tooltip="Huniu Search" title="Huniu Search" 
							cssStyle="background-image: initial; background-attachment: initial; 
								background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); 
								border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; 
								border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; 
								border-right-color: rgb(217, 217, 217); border-bottom-color: rgb(217, 217, 217); 
								border-left-color: rgb(217, 217, 217); border-top-color: silver; color: rgb(0, 0, 0); 
								margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 5px; 
								padding-right: 8px; padding-bottom: 0px; padding-left: 6px; vertical-align: top; outline-style: none; 
								outline-width: initial; outline-color: initial; background-position: initial initial; 
								background-repeat: initial initial; "></s:textfield>
						<s:submit value="Huniu Search" cssStyle="border: 1px solid rgba(0, 0, 0, 0.1);border-radius: 2px;
							color: #666; cursor: pointer; font-size: 11px; font-weight: bold; height: 29px;line-height: 27px;
							margin: 11px 6px; min-width: 54px; padding: 0 8px; text-align: center;">
						</s:submit>
						<s:submit value="I'm Feeling lucky" cssStyle="border: 1px solid rgba(0, 0, 0, 0.1);border-radius: 2px;
							color: #666; cursor: pointer; font-size: 11px; font-weight: bold; height: 29px;line-height: 27px;
							margin: 11px 6px; min-width: 54px; padding: 0 8px; text-align: center;">
						</s:submit>
					</td>
				</tr>
			</tbody>
		</table>
		</s:form>
		</center>
		<div class="content">
			<table>
				<s:iterator id="html" value="htmlList" status="htmlStatus">
					<s:if test="#htmlStatus.odd == true ">
						<tr style="background : gray">
							<td><a href="<s:property value='link'/>" target="_blank"><s:property value="quality"/></a></td>
						</tr>
					</s:if>
					<s:else>
						<tr>
							<td><a href="<s:property value='link'/>" target="_blank"><s:property value="quality"/></a></td>
						</tr>
					</s:else>
				</s:iterator>
			</table>
		</div>
	</div>
  </body>
</html>

